-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breadcrumb: add accessibility label #19597
Conversation
The approach is good. Also nice that we got rid of that debounced hack again. :-) |
fad292b
to
e403024
Compare
b104c6f
to
f89b02c
Compare
f89b02c
to
fb38451
Compare
index, | ||
name, | ||
attributes, | ||
} = useSelect( selector, [ clientId, rootClientId ] ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't like this pattern for useSelect personally, it makes it very hard to understand the relationship between the deps and the selector and whether we forgot a dep or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would you do instead rename the constants?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it now to assigning the constants after calling useSelect
. Is this better? See e071288.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This becomes a bit more succinct with the selector version of getAccessibleBlockLabel
in #19664:
bd08efe
to
0757868
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me code-wise, but I'll defer to Riad for approval over the comment he made. Thanks again for handling this.
Let's merge. All feedback has been addressed. We can iterate if small adjustments need to be made. |
Description
See #18132 (comment).
The block label doesn't make se much sense on the block wrapper, as it's right next to the block content and we'd like the remove this wrapper eventually. The block label makes a lot more sense in navigation mode.
Example:
How has this been tested?
Screenshots
Types of changes
Checklist: